#include "ThreadPool.hpp"
#include "Task.hpp"

using namespace ThreadPoolModule;

int main()
{

  std::cout << "hello world!" << std::endl;

  std::unique_ptr<ThreadPool<task_t>> _tp = std::make_unique<ThreadPool<task_t>>();

  _tp->Start();

  int _cnt = 10;
  while (_cnt)
  {
    _tp->Equeue(Push);

    _cnt--;
    sleep(1);
  }

  _tp->Wait();

  return 0;
}